package com.guofs.hand.control;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by guofs on 2017/6/30.
 */
@RestController
@RequestMapping("demo")
public class DemoControl {
    @GetMapping("demo")
    public ResponseEntity demo(@RequestParam("name") String name){
        return ResponseEntity.ok(name);
    }
}
